package com.juyu.miliao.api.domain.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 发现动态评论DTO
 * @author xuanqicheng
 *
 */
@Data
public class FindDynamicCommentDTO {
    /**
     * id
     */
    private Long id;
    /**
     * 动态id
     */
    @NotNull(message = "发现id不能为空")
    @Min(value = 1,message = "发现id格式不正确")
    private Integer findId;
    /**
     * 评论内容
     */
    @NotBlank(message = "评论内容不能为空")
    @Length(max=50,message = "评论内容超长")
    private String comment;

    /**
     * 评论用户id
     */
    private Long fromUserId;
    /**
     * 是否是作者：0：不是，1：是
     */
    private Integer isWriter;

    /**
     * 点赞数（预留字段）预留
     */
    private Integer likeNumber;

    private String commentTime;

    private String commentDate;
}
